If you want to have active on/off control of the LED and can adjust the sense of your MCU output (in other words, you don't care whether it is active HI or active LO to turn it on), then the following is probably what you want:

simulate this circuit – Schematic created using CircuitLab
Your original circuit (ignoring the flaws) required your I/O pin to sink ALL of the LED current. That's doable, given the relatively low current. But there's no point designing that level of current into the circuit if it isn't necessary. The above circuit greatly relaxes the load on the I/O pin to perhaps \$200\:\mu\text{A}\$.
I assumed that since your rail voltage was \$3\:\text{V}\$, that this was also your I/O pin output voltage when HI. So \$R_2\$ is figured on that basis.
In this circuit topology, \$Q_2\$'s \$V_\text{BE}\approx 700\:\text{mV}\$ and \$Q_1\$'s \$V_\text{BE}\approx 650\:\text{mV}\$. So the base voltage seen by the I/O pin will be about \$1.35\:\text{V}\$. If the output of the I/O pin is \$3\:\text{V}\$ at light current load, then \$R_2=\frac{3\:\text{V}-1.35\:\text{V}}{200\:\mu\text{A}}\approx 8.2\:\text{k}\Omega\$. (That's assuming that \$Q_2\$ goes into saturation by the time that \$\beta_2\approx 30\$.) I made \$R_2\$ to provide even more, closer to \$250\:\mu\text{A}\$, just to make absolutely sure.
Almost any I/O pin can source \$250\:\mu\text{A}\$ without difficulty. And the load is light enough that the I/O pin will present nearly its \$V_\text{CC}\$ without much of a drop.
Since \$Q_2\$ starts going into saturation when its collector is at \$1.35\:\text{V}\$ (which is fine as there is plenty of base current available -- so it can go even lower, if needed), there is \$1.65\:\text{V}\$ available for the IR LED. Without the datasheet, I can't tell you for sure that this is okay at the current you are using. But probably so given this is an IR LED. Still, the circuit can saturate \$Q_2\$ and add a few tens of millivolts across the IR LED, just fine. So I think you should be okay.
NOTE: A constant current through an untested LED isn't much of a guarantee regarding stable intensity nor equal intensity between two different LEDs. I just want to make sure you understand that using an IR LED as a "standard candle" requires a lot more than just pumping a relatively fixed current through it. (This is an IR LED, so clearly the human logarithmic responses to intensity aren't part of the picture, either.) But since you aren't using any kind of accurate current source anyway, I suppose this isn't an issue for your application.