A Maryland man’s deportation to El Salvador set off a fierce debate among officials in three cabinet agencies, despite agreement there had been a mistake.