The ruling contradicts an earlier federal court decision in Washington, D.C. that denied the U.S. Chamber of Commerce's request to strike down the visa fee.