Maryland Governor Wes Moore has signed legislation effectively banning local governments and police from entering official agreements with federal Immigration and Customs Enforcement.