Third-party candidates lose legal fight to get into presidential debates