A U.S. judge on Friday threw out the state of Maryland's bid to protect the healthcare law known as Obamacare in a ruling that also sidestepped a decision on whether President Donald Trump's appointment of Matthew Whitaker as acting attorney general was lawful.