Apple Inc. rolled out a new 24-inch iMac and an entry-level MacBook Pro with a 14-inch screen, marking a pair of key updates in an end-to-end overhaul of the company’s computer line.