Justices ruled in 2011 that makers of generic drugs cannot be sued for failing to warn consumers of the possible side effects of their products if they copy the exact warnings on the brand-name equivalents of the medicines as required by federal law.