WASHINGTON — President Trump on Friday rejected Republican complaints about his decision to work with Democrats on fiscal and immigration issues, chiding his own party for failing to advance major legislation and calling on congressional leaders to begin overhauling the tax code immediately.

As the rift between the president and Republican lawmakers widened, the president argued that he had no choice but to collaborate with the Democratic minority to get business done, especially because the opposition has the power to block bills in the Senate, where Republicans do not have the 60 votes required to overcome a filibuster.

“Republicans, sorry, but I’ve been hearing about Repeal & Replace for 7 years, didn’t happen!” he wrote in a series of morning messages on Twitter, referring to the failure of party leaders to pass legislation overturning former President Barack Obama’s health care program. “Even worse, the Senate Filibuster Rule will never allow the Republicans to pass even great legislation. 8 Dems control — will rarely get 60 (vs. 51) votes. It is a Repub Death Wish!”

Mr. Trump pressed his party allies to accelerate efforts to revamp the tax code and lower taxes on corporations and workers, perhaps his best chance to pass a major priority item before the end of the year. “Republicans must start the Tax Reform/Tax Cut legislation ASAP,” he wrote. “Don’t wait until the end of September. Needed now more than ever. Hurry!”