 Court courts do not sit to decide the legality of everything the government does, which is true, even if it may overstep a branch's constitutional powers or infringe on individual rights. They sit to hear the complaints of people, groups and institutions whose rights have been violated to bring the lawsuit in federal court. You need standing to sue, which is commonly described as having three elements injury.