Constraints on cosmological models from Hubble Space Telescope observations of high-z supernovae