As tensions soar, Beijing says move a 'legitimate and necessary response to the unreasonable measures by the United States'