A new law in the US will compel social media companies to comply with police warrants within days in cases of stalking.