With the fate of health insurance for more than 20 million Americans at stake, two justices—Chief Justice John Roberts Jr. and Justice Brett Kavanaugh—seemed inclined Tuesday to form a majority to preserve the Affordable Care Act in nearly its entirety.

The two justices, along with their three liberal colleagues, indicated that if the health care law’s individual mandate to purchase health insurance was no longer constitutional following Congress’ action in 2017, a doctrine known as severability would allow the court to excise the mandate but keep the rest of the law in place.