Student union says investment policy change makes it ‘easier to profit from companies connected to armed conflict’