President Trump has ordered the shutdown of the first nationwide database that tracks misconduct by federal police officers.