The American courts are set to rule on a potential law that could see the popular app banned in the US.