The 31-year-old actress, who will play a lieutenant commander, will be the first African-American woman to lead the cast of the Trekkie TV franchise.