Major League Baseball’s players union settled a lawsuit that accused sports betting giant FanDuel of using the names and likenesses of hundreds of MLB players on its betting platform without permission.