Two court cases over 200 years apart reflect what happens when commercial and artistic interests meet