The courts are slamming the brakes on some of President Donald Trump's efforts to quickly trim and transform the federal government.