The Large Early Galaxy Astrophysics Census (LEGA-C) Data Release 2: Dynamical and Stellar Population Properties of z<~1 Galaxies in the COSMOS Field