Obama signs patent overhaul legislation