House Democrats mulling a legal challenge to President Donald Trump’s plans to secure funding for a border wall may have a blueprint in a legal attack Republicans mounted against the Obama administration nearly five years ago over payments related to the Affordable Care Act.

The House of Representatives, under a Republican majority led by then-Speaker John Boehner, sued the Obama administration and the Health and Human Secretary Sylvia Burwell in 2014 to challenge the administration’s use of federal dollars to fund cost-sharing reduction payments to health insurers. Those payments were made even though Congress had not authorized them.