A ruling reverses a “weak copyright claim” that had forced the website to remove the video on “Innocence of Muslims,” which set off protests in 2012.