Spectroscopic limits on the distance and energy release of GRB 990123