The New Jersey legislature approved a bill on Thursday that will enable racetracks and casinos in the state to take sports bets, but it is not yet clear when Gov. Phil Murphy will sign the bill. Both the Senate and the General Assembly passed the bill after a round of lobbying during the morning and the early afternoon. Although Murphy has not indicated that he is opposed to the bill, a spokesman for his office told the Associated Press that the legislation “will be subject to the same thorough review that all legislation sent to him for signature is subject to.” Over the past six years, New Jersey has led the way among states in attempting to legalize sports betting. But the state’s efforts were challenged in courts by a consortium of sports leagues, leading to a Supreme Court ruling in May that struck down a federal law that had prohibited most states, including New Jersey, from allowing sports betting. Monmouth Park officials have said that they want to offer sports betting at the Jersey Shore racetrack as soon as legally possible, but Dennis Drazin, the president of the company that operates the track, said late on Thursday that he had “no answer yet” as to when the track would take sports bets. He had earlier said that Monmouth would be ready to take bets once the bill is signed. Monmouth Park has already built a sports book at the track and signed a partnership with William Hill, the bookmaking company, to operate the facility. The track is expecting large crowds on Saturday, when Monmouth holds a live race card and Justify goes for the Triple Crown at Belmont Park on Long Island. The legislation passed on Thursday sets the tax rate for sports bets at casinos at 9.75 percent on gross revenue, with a portion of the money earmarked for the promotion of Atlantic City casinos. The racetrack tax rate would be the same. Internet bets, which will be legal 30 days after the law is signed, will be taxed at 13 percent. During negotiations over the bill on Thursday, legislators also put in place provisions that will allow some casinos in the state to offer sports betting despite some of their owners having stakes in professional sports teams. One of the provisions directly impacts the Golden Nugget, which is owned by Tilman Fertitta, who also owns the Houston Rockets. Under the bill, the Golden Nugget would be able to offer sports betting on all sports except basketball. Just after the Supreme Court ruling on May 11, Churchill Downs Inc., the large racetrack and casino company, said it had reached an agreement to form a partnership with the Golden Nugget on a sports-betting venture in New Jersey. Churchill Downs also owns and operates twinspires.com, one of the leading account-wagering companies in the U.S. The partnership is expected to begin taking bets in the first quarter of 2019, the companies said at the time of the announcements.