I had wondered if the legislature was actually able to compel the institution of the 25th Amendment. The Cabinet is housed in the Executive Branch. Trump may have been able to appealed the legislation to the Supreme Court.
The US Cabinet is free to act on their own to end risk to the country. They can carry out that act immediately.