Two countries in West Africa have banned US citizens from entering in response to a similar move by the Trump administration.