Costs ruling hits lawyers' pockets