Iran sent ballistic missiles to Russia to aid its war in Ukraine despite months of warnings by US and European officials not to do so, people familiar with the matter said.