The problem is that the Constitution is broken, and has been since it was drafted. The right to bear arms probably should be conditioned on something more clear than the necessity of a well regulated militia (whatever the hell that means) to the security of a free state. The requirements for warrants probably ought to be weakened somewhat at border crossings. But the plain text of the Constitution does not allow this. The plain text contains no exceptions, and does not empower Congress to make exceptions. But changing the Constitution is hard, so rather than go through this slow, arduous process, everyone just punts the problem to the Court and says, "You deal with it." And so they do. The Court just does end-runs around the Constitution for defensible and practical reasons. But this doesn't change the fact that it is doing end-runs around the Constitution.