A judge dismissed the federal privacy watchdog's bid for a declaration that Facebook broke laws governing data protections in a case flowing from the Cambridge Analytica affair.