Cancellation of IR divergences in 3d Abelian gauge theories