Sensex, Nifty settle marginally higher in first part of spec