Beijing has called out Washington for its cancellation of Chinese students' visas to the U.S., accusing it of racial discrimination.