Sir Keir Starmer could end up allowing Donald Trump to use British bases to launch strikes on Iran, Harriet Harman has said.