The bosses of Centrica and Ecotricity say the move is needed to tackle rising prices for customers.