The first minister says he has confidence in his transport secretary, who denies being briefed about the ferry incident.