Nicaragua is set to ratify a free trade agreement with the US after its parliament passed a package of law reforms to comply with US demands.