Was Jesus in unity with the Holy Spirit? I read this scripture: Matthew 10:5

New International Version


  These twelve Jesus sent out with the following instructions: "Do not
  go among the Gentiles or enter any town of the Samaritans.


Later I read in Colossians 3:11


  Here there is no Gentile or Jew, circumcised or uncircumcised,
  barbarian, Scythian, slave or free, but Christ is all, and is in all.


Or in Romans 10:12


  For there is no difference between Jew and Gentile--the same Lord is
  Lord of all and richly blesses all who call on him,


What is the explanation that Jesus was preventing his disciples to preach the gospel to gentiles? Does this show that Jesus was not in line with the Holy Spirit who was directing Peter and others to accept them?

Please don't give me just your opinion but back-up with your church teaching. I'm mostly interested in the Catholic teaching but open to the other explanation just to see what others think.
Jesus said to a Samaritan women: 


  Our fathers worshipped in this mountain; and ye say, that in Jerusalem is the place where men ought to worship. Jesus saith unto her, Woman, believe me, the hour cometh, when ye shall neither in this mountain, nor yet at Jerusalem, worship the Father. Ye worship ye know not what: we know what we worship: for salvation is of the Jews. But the hour cometh, and now is, when the true worshippers shall worship the Father in spirit and in truth: for the Father seeketh such to worship him.
  -- John 4:20-23 (KJV) 


"salvation is of the Jews. But, ...", is a clear indication that what began with the Jews would not stop there. Jesus' statement of the great commission at his last meeting with the Apostles confirms that the scope of his vision was not confined to the Jews only, but would extend to the ends of the earth. (Acts 1:4-8). 

Paul says:


  For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth; to the Jew first, and also to the Greek.
  -- Romans 1:16 (KJV)


Paul repeats the expression "the Jew first, and also to the Greek" again, twice in Romans 2:9,10. He also gives an elaborate illustration of it in his olive tree analogy in Romans 11.



Conclusion

It seems pretty clear what Jesus' game plan was: first, give the natural olive branches an opportunity to bear fruit (dig &amp; dung Luke 13:6-9; vine &amp; branches John 15:1-8); second, prune out the branches that continue not to produce fruit, and graft in the wild olive branches.

Jesus is the husbandman, and the Apostles, including Paul, are his workers. Jesus assigned the Apostles the task of trying to get the natural olive branches to bear their fruit. Having limited success with the natural branches, however, Jesus then assigned Paul the task of grafting in the wild olive branches.