The United States has spoken out against Tanzanian moves to cut back human rights and civil liberties, including arrests and harassment of “marginalized” people such as homosexuals.