Hubble Space Telescope and Ground-based Observations of Type Ia Supernovae at Redshift 0.5: Cosmological Implications