NEW YORK — Entertainment companies may find it harder to keep movie and TV show clips from circulating for free online after a federal judge on Wednesday threw out Viacom’s hotly contested $1 billion copyright infringement suit against Google’s YouTube.