Yorkshire Water forced to pay out 40 million