Keystone XL suffers another setback as judge blocks most work on the oil pipeline