A San Francisco appellate court panel wrestled Tuesday with how to balance the Legislature's authority to enact labor laws with the rights of Californians who approved a 2020 ballot measure classifying app-based drivers as independent contractors.