Microsoft is suing the US government over a federal law that allows the latter to search and look at data of customers without their knowledge.