The bill was amended at the last minute to give the government power to demand the names of unnamed news sources in reports that lead to legal disputes .