Ridgefield pharma resolves legal impasse on Humira rival