A US judge has allowed Meta to proceed with layoffs, despite claims that automated tools unfairly targeted disabled staff.