A three-year effort by Salesforce.com Inc. to avoid a trial involving alleged sex trafficking victims was blocked by a Texas Supreme Court decision to deny a writ of mandamus.