US President Donald Trump has ordered the military to prepare for action in Nigeria to tackle Islamist militant groups, accusing the government of failing to protect Christians.