NBC: This obscure law is one reason Trump's agenda keeps losing in court