The Washington Post reports
In 1973, when Richard Nixon was president, Democrats in the Senate, including Sen. Edward Kennedy (D-Mass.) and Sen. Walter Mondale (D-Minn.), sought to attach a campaign finance reform bill to the debt ceiling after the Watergate-era revelations about Nixon’s fundraising during the 1972 election. Their efforts were defeated by a filibuster, but it took days of debate and the lawmakers were criticized by commentators (and fellow lawmakers) for using “shotgun” tactics to try to hitch their pet cause to emergency must-pass legislation....
One of the most striking examples of a president being forced to accept unrelated legislation on a debt-ceiling bill took place in 1980. The House and Senate repealed a central part of President Jimmy Carter’s energy policy — an oil import fee that was expected to raise the cost of gasoline by 10 cents a gallon. Carter vetoed the bill, even though the United States was close to default, and then the House and Senate overrode his veto by overwhelming numbers (335-34 in the House; 68-10 in the Senate).
Even so, at the present time, I don't think the tactic is going work well for the Republicans.