Energy firms could get government loans to take on customers from companies that go bust