The UK government was "blinded" by financial imperatives when it cut the winter fuel payment without due consideration of the impact on vulnerable people, a court has heard.