The cost is peanuts compared to the potential profit. Apple/Google/Facebook could absolutely eat the costs for a skunkworks project to do that training and just sit quietly waiting on the yes/no from legal.
But the question is rather of the cost are peanuts compared to expected cash flow for the next 12 months.