Japan 's foreign ministry said Tuesday the loans will be used to help reconstruct the port of Umm Qasr and repair a thermal power plant near Baghdad .