The Australian government scored a victory in its battle to introduce a carbon tax after measures to combat climate change cleared the lower house of parliament by a tiny margin.