Khamenei commits to pursuing US legally and seeks negotiations