MLB to pay minor leaguers $185 million to settle lawsuit