A judge’s decision will cap a saga that captivated the public and put a spotlight on Silicon Valley start-up culture