Costs related to recent federal settlements and other lawsuits have forced the Valley drugmaker to file for bankruptcy protection.