Burnaby loses Trans Mountain court battle, ordered to pay company's costs