Court blocks Trans Canada pipeline expansion