A Chinese government-owned rail company was awarded a $566.6 million Massachusetts state contract on Wednesday to build subway trains for the “T,” the nation’s oldest subway system, despite concerns from local activists about China’s human rights record as well as complaints from competitors that the company’s winning bid was unrealistically low.