Several Republicans in the U.S. Congress are criticizing a new Alabama law that will ban nearly all abortions in the state as too extreme, saying exceptions should be made for rape and incest and questioning whether it will hold up in court.

President Donald Trump also broke his silence on the increasing trend of state passing restrictive abortion bans late Saturday, denouncing bills like the one that passed last week in Alabama.

Trump said he is strongly “Pro-Life,” but said he does favor allowing women to get abortions in the case of rape, incest or the health of the mother. Trump’s remarks came after four days after the Alabama Senate passed the most restrictive abortion bill in the United States.

In a series of tweets, Trump said his abortion policies are similar to those of late Republican President Ronald Reagan.

Alabama’s ban, which was signed into law by the state’s governor Wednesday, features only one of the three exceptions the president favors. It only allows for abortions if the pregnant person’s life is at risk, and has no exceptions for cases of rape or incest.

Under the law, which is expected to be challenged, doctors who perform abortions in the state could be charged with a felony and face as much as 99 years in prison.

Republican-led legislatures in Georgia, Ohio, Mississippi, Kentucky, Iowa and North Dakota have also enacted laws banning abortion from the moment a fetal heartbeat is detected.

In his Saturday tweets, Trump urged his fellow Republicans to “stick together” on the issue of abortion, suggesting the extreme Alabama law would unnecessarily divide the party ahead of the 2020 elections.

“If we are foolish and do not say UNITED as one, all of our hard fought gains for life can, and will, rapidly disappear!” he said.