WASHINGTON, Oct 16 (Reuters) - The U.S. House and Senate are "very close" to reaching bipartisan agreement to extend the Dec. 31 federal deadline for passenger and freight railroads to implement new safety technology for avoiding major accidents, an aide said on Friday.