President Donald Trump's agenda just got dealt a "monumental" defeat by the U.S. Supreme Court, according to a legal expert.