Expansion of Heathrow Airport will only take place if it is within climate targets, Ed Miliband has said.