The company’s Cursor product, which can autocomplete programming code, helped the start-up draw a $2.5 billion valuation.