BankUnited is not owed a nearly $40 million tax refund stemming from losses it incurred when it took over a failed bank because it requested the refund too late, a Florida federal judge ruled Tuesday, agreeing with the U.S. government.