Mark Zuckerberg and Silicon Valley are on edge after a pair of landmark court losses.