T-Mobile US Inc.'s bid to buy wireless rival Sprint Corp. is in a judge's hands after the companies made their final plea for him to reject a state lawsuit seeking to block the deal.

U.S. District Judge Victor Marrero in New York heard closing arguments on Wednesday in the states' antitrust lawsuit over the $26.5 billion deal, which would unite the third- and fourth-largest U.S. wireless carriers and create a rival to market leaders AT&T Corp. and Verizon Communications Inc.

Marrero, who asked no questions of the parties, said he will rule as "promptly as possible." It's been almost two years since the companies announced their planned merger in April 2018. T-Mobile and Sprint had discussed a merger previously but their proposals were rejected by Obama-era federal regulators.