Energy suppliers will spend £500m helping customers with their energy bills this winter, after the government helped broker a deal involving 12 of the biggest companies in the UK.