It is shameful not to raise extra money from oil and gas firms amid the rising cost of living, Ed Miliband says.