Parliament ratifies petroleum agreement