(CNN) Abortion services can continue for now in Missouri after a judge ruled that its license would not expire at the end of the day Friday. The state had refused to renew Planned Parenthood's license to continue providing the procedure.

Circuit Court Judge Michael Stelzer's ruling does not renew the license. Instead, the ruling allows the current license to remain in effect until the matter can be heard in court again on June 4.

Planned Parenthood "has demonstrated that immediate and irreparable injury will result if Petitioner's license is allowed to expire," Stelzer wrote in his decision. "The court finds that a temporary restraining order is necessary to preserve the status quo and prevent irreparable injury to Petitioner pending disposition of the case on the merits."

If the clinic had to stop providing abortion services, Missouri would have been the first state in the nation to block the procedure in more than 45 years.

A lawsuit against the state was filed earlier this week by Reproductive Health Services of Planned Parenthood of the St. Louis Region, which has provided abortions for more than two decades and is the last remaining clinic to do so in Missouri. Its license to continue offering abortions was set to expire Friday, and the organization argued that withholding the license amounted to another tactic in a years-long effort to "restrict abortion access and deny Missourians their right to choose abortion."

Read More