Justice Anthony Kennedy to retire from Supreme Court July 31