The department said the hack on a third-party software service provider had been attributed to the Chinese.