The US Senate has approved a sweeping $700bn (£577bn) economic package that includes major legislation on healthcare, tax and climate change.