A judge Friday shot down a law that would have allowed app-based companies to continue treating drivers as contractors instead of employees in California, ruling unconstitutional a proposition passed by voters after a record-breaking campaign.