Mauro Icardi struck a late winner to give Inter a 2-1 victory over Roma and boost their hopes of qualifying for the Europa League.