The defeat is a massive setback to an industry that has spent record sums lobbying for a favourable market structure.