The Court's Decision was exactly the right one. The plaintiff was not the custodial parent. He lacked standing to bring the action and federal courts, being courts of limited jurisdiction, may only rule where there is an actual case or controversy.
This is a victory for a limited judiciary.
It will probably be a while before some disgrungled parent gets this particular bee in his bonnet again. To quote my favorite line from the movie Ruthless People, "Stupid people are a dime a dozen, but true idiots are rare..."