The president lashed out at Israeli prosecutors and highlighted billions of dollars in aid from the United States