The US Commerce Department penalized GlobalFoundries for shipping $17 million worth of chips to a Chinese company linked to military use.