After years of competitive and often contentious dealings , President Bush and Senator John McCain of Arizona are building a deepening if impersonal relationship that is serving the political needs of both men .