Jordan and IMF agree second funding tranche