A New York court — acting in a television rights fees dispute between the Orioles and Washington Nationals — has temporarily blocked Major League Baseball from proceeding with a recent decision that would divert tens of millions of dollars in profits from the regional network that primarily benefit the Baltimore team.

The New York Supreme Court Commercial Division for New York County issued a temporary restraining order Thursday in response to Mid-Atlantic Sports Network's petition to block the decision. The court would hold a hearing on a permanent injunction later this month.

The court also rejected MLB's request to close the record, meaning documents filed by the Nationals and MASN will be made publicly available.

Commissioner Bud Selig, who is retiring in January, had hoped the tussle over the financial distributions of MASN — which broadcasts both teams' games — would not end up being decided in court. He strongly urged the parties to settle their differences, even threatening sanctions.

The order by Judge Lawrence Marks comes in a dispute that began several years ago but only proceeded to court in early July when the clubs filed petitions that could be considered precursors to full-blown suits.

Marks' injunction prevents MLB's decision from taking effect at least until the matter can be is heard by the court. The judge also blocked the Nationals from terminating the agreement under which the network televises games.

MASN, which is majority-owned by the Orioles, is contesting the June decision by owners of the New York Mets, Pittsburgh Pirates and Tampa Bay Rays. The panel, called the Revenue Sharing Definitions Committee, was selected by Selig to decide the matter.