The ruling marks a significant setback for the FTC, which has recently scored major victories against Google.