Portugal’s president has signed legislation banning face coverings that prevent identification in public spaces, a measure widely seen as targeting the burqa and niqab.