A state appeals court has given the go-ahead to a long-planned Muni streetcar loop in San Francisco’s central waterfront area, over the objections of a neighborhood group that wants the line rerouted.