The Senate passed a controversial extension of the federal government's warrantless spying powers just after a midnight deadline on Friday over objections from Democrats and Republicans who opposed the incidental collection of US citizens' data as part of the authority.