Iran has accused Sir Keir Starmer of putting British lives at risk by allowing the United States to carry out strikes from UK air bases.