A federal judge in Los Angeles has blocked a new California state law that bans federal and local law enforcement officers from wearing masks.