A US federal judge has struck down President Donald Trump’s visa ban affecting nationals from 75 countries, calling the policy “contrary to law.”