The Mobile shipyard will build fewer Navajo-class ships than planned, cutting short a program battered by inflation and other issues.