Court curbs licenses to store nuclear waste