The companies raised prices a median 4%, though some drugs will cost thousands of dollars more.