Cosmological observations as a probe of fundamental physics and astrophysics