Universal description of laser dynamics near threshold