Transgender swimmer Lia Thomas can't compete in the Olympics after she lost her legal battle to have the rules barring her participation overturned.