A coalition of 19 states and the District of Columbia, led by California and Massachusetts, said on Monday they will sue the Trump administration to stop a sweeping new rule to indefinitely detain migrant families seeking to settle in the United States.

The lawsuit, which is to be filed in federal court in California, will be only the first of what is expected to be a flurry of lawsuits aimed at blocking the rule, officially published on Friday, from taking effect in October.

However, the Trump administration's effort to overturn a two-decade-old legal settlement limiting how long migrant children can be detained is likely to face more than just legal hurdles.