Bipartisan effort leads to Senate OK of farm bill