Mining giant BHP has been defeated in a landmark test of the federal government's "same job, same pay" laws and ordered to pay 2,200 of its Central Queensland coal miners an average of $30,000 more.