WASHINGTON (AP) — The Republican-controlled Congress on Thursday scrapped Obama-era rules on the environment and guns, counting on a new ally in the White House to help reverse years of what the GOP calls excessive regulation.

The Senate gave final approval to a measure eliminating a rule to prevent coal mining debris from being dumped into nearby streams, while the House backed a separate resolution doing away with extended background checks for gun purchases by some Social Security recipients with mental disabilities.

The Senate's 54-45 vote sends the repeal of the stream protection rule to President Donald Trump. The gun measure awaits Senate action.

The White House said Thursday night that Trump supports both measures and is likely to sign them.

Republicans and some Democrats say the coal-mining rule could eliminate thousands of coal-related jobs and ignores dozens of federal, state and local regulations already in place.

The Interior Department, which announced the rule in December, said that it would protect 6,000 miles of streams and 52,000 acres of forests, preventing coal mining debris from being dumped into nearby waters.

The vote was the first in a series of actions Republicans are expected to take in coming weeks to reverse years of what they call excessive regulation during President Barack Obama's tenure. Rules on fracking, federal contracting and other issues also are in the cross-hairs as the GOP moves to void a host of regulations finalized during Obama's last months in office.

Senate Majority Leader Mitch McConnell, R-Ky., called the stream rule "an attack against coal miners and their families" and said it would have threatened coal jobs and caused major damage to communities in Kentucky and other coal-producing states.

"The legislation we passed today will help stop this disastrous rule and bring relief to coal miners and their families," McConnell said.

Democrats called the vote an attack on clean water and a clear win for big coal-mining companies and other polluters.

Story continues

Sen. Maria Cantwell, D-Wash., said the stream rule had nothing to do with the decline of coal, which faces stiff competition from cheap natural gas.

"This rule was not in place" when coal production began declining in the past half-dozen years, Cantwell said.

In the House, the issue was an Obama rule extending background checks for disabled Social Security recipients mentally incapable of managing their own affairs. The House voted 235-180 to scuttle it.

Under the rule, the Social Security Administration had to provide information to the gun-buying background check system on recipients with a mental disorder so severe they cannot work and need someone to handle their benefits. The rule, also finalized in December, would have affected an estimated 75,000 beneficiaries.

"There is no evidence suggesting that those receiving disability benefits from the Social Security Administration are a threat to public safety," said Rep. Bob Goodlatte, R-Va., chairman of the House Judiciary Committee.

"Once an unelected bureaucrat unfairly adds these folks to the federal background check system, they are no longer able to exercise their Second Amendment right," he said.

After the 2012 school massacre in Newtown, Connecticut, Obama directed the Justice Department to provide guidance to agencies regarding information they are obligated to report to the background check system.

In Newtown, 20 children and six educators were shot to death when a gunman entered the Sandy Hook Elementary School on Dec. 14, 2012. The gunman had earlier killed his mother inside their home, and he used a gun and ammunition that she had purchased. His mental health problems have been extensively reported since the shooting.

Democrats said Republicans were doing the bidding of the National Rifle Association, which opposed the Social Security Administration's rule.

"These are not people just having a bad day," Rep. Mike Thompson, D-Calif., said. "These are not people simply suffering from depression or anxiety or agoraphobia. These are people with a severe mental illness who can't hold any kind of job or make any decisions about their affairs, so the law says very clearly they shouldn't have a firearm."

The NRA said overturning the regulation will protect a broad class of vulnerable citizens from government overreach. And the American Civil Liberties Union agreed, telling lawmakers that a disability should not constitute grounds for the automatic denial of any right or privilege, including gun ownership.

Republicans are employing a rarely used tool to roll back some of the rules issued in the final months of Obama's tenure. The Congressional Review Act provides a temporary window for a simple majority of both chambers to invalidate a rule. The president has to sign the disapproval measure for the regulation to be deemed invalid.

The law also prevents the executive branch from imposing substantially similar regulations in the future.

On the coal mining vote, Sen. Susan Collins of Maine was the sole Republican to oppose the repeal measure, which was supported by four Democrats: Joe Donnelly of Indiana, Heidi Heitkamp of North Dakota, Joe Manchin of West Virginia and Claire McCaskill of Missouri. All four face re-election next year in states Trump won.