The attorneys-general of Washington and Minnesota have claimed Mr Trump acted in "bad faith in an effort to target Muslims" in signing his executive order banning travel from seven Muslim-majority countries.