Nintendo Co. said its next console will be compatible with current Switch games, allaying fears about the company’s ability to ride on the aging machine’s past success.