Michael R. Bloomberg’s repeal of term limits and his campaign spending may have undermined his bid.