Samsung wins US appeal in Apple patent case