Ban on overseas travel valid, court says