Beijing says move is a 'legitimate and necessary response' to Washington's decision to shut China's Houston consulate.