A federal judge ruled that the fee amounted to an unlawful tax on the visa program for highly skilled workers. Medical groups cheered the decision.