A federal judge ruled Friday that the government must make the most common morning-after pill available over the counter for all ages, instead of requiring a prescription for girls 16 and younger. In his ruling, he also accused the federal government of “bad faith” in dealing with the requests to make the pill universally available, and said its actions had been politically motivated.