UK government could face legal challenge as it shelves climate commitments