U.S. factory production increased marginally in February as manufacturing remained constrained by tariffs on imports, and the conflict in the Middle East could raise operating costs.