Federal government defends Northern Gateway approval at court hearing