Barrett pledges to interpret laws 'as they are written'