The House passed a sweeping abortion bill Tuesday that would permanently ban federal funding for abortions and restrict some Obamacare plans that cover elective abortions.

However, the legislation faces an uncertain future in the Senate.

The legislation, which passed 238-183, would make the Hyde amendment permanent. The amendment, which has been added to spending bills for decades, bans any federal funding from being used to provide abortions.

In addition, it would target Obamacare plans that cover elective abortions. It would not provide Obamacare customers with subsidies used to pay down the cost of insurance if the insurance plan covers abortions.

There is an exception for abortions for rape, incest and to save the life of the mother.

The bill, authored by Rep. Chris Smith, R-N.J., would not affect an Obamacare customer who does not receive taxpayer-funded subsidies.

The bill was considered in anticipation of the annual March for Life being held Friday, an expected gathering of tens of thousands of anti-abortion activists.

The White House said in a statement Tuesday that if the Senate passes it, President Trump would sign it.

The House passed a similar bill in 2011, 2014 and 2015 that made the Hyde amendment permanent, but each time it stalled in the Senate. This year appears to be no exception, as Republicans would need eight Democrats in the chamber to support it.