YouTube had the discretion to take down content that harmed users, judge said.