This agreement follows various Microsoft challenges with cybersecurity in its work with the federal government.