Quantum Criticality of U(1) Gauge Theories with Fermionic and Bosonic Matter in Two Spatial Dimensions