In the first case mentioned, Congress had passed a law.
In the second case mentioned, there was no party of standing.
In the third case mentioned there was a Constitutional Amendment
In the fourth case, there was a treaty agreed to by the US government.